package com.lhf.controller;

import com.lhf.entity.Person;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Objects;

@Controller
public class PersonContorller {
    @RequestMapping("/main")
    @ResponseBody
    public Object ajax(){
        Person person = new Person("monkey",16);
        return person;
    }
}
